<?php 
/*
Engineer: Alex Arey
Updated: 12/04/2011
Description: Displays selected application's data.

*/
?>

<?php 
	if($this->internship){
		$pos = $this->internship;
	}
?>
<?php if($pos):?>
<h3>Position details</h3>
	<dl>
  	  <dt>Position title</dt>
		<dd><?php echo $pos['NAME'] ?></dd>
	  <dt>Requested for term</dt>
		<dd><?php echo $pos['TERM'] ?></dd>
	  <dt>Start and end dates</dt>
		<dd>Start:&nbsp;<?php echo $pos['STARTDATE'] ?></dd>
		<dd>End:&nbsp;<?php echo $pos['ENDDATE'] ?></dd>
	  <dt>Responsibilities</dt>
		<dd><?php echo $pos['RESPONSIBILITIES'] ?></dd>
	  <dt>Educational goals</dt>
		<dd><?php echo $pos['EDUCATIONALGOALS'] ?></dd>
	  <dt>Skills and qualifications</dt>
		 <dd>
			<ul> 
				<?php 
					$skills = explode(" | ",$pos['SKILLSQUALIFICATIONS']);
					foreach($skills as $s){
						if(trim($s) != ''){
						echo "<li style = 'color:#666666'>".trim($s)."</li>";
						}
					}
				?>
		 </ul>
		</dd> 
	  <dt>Required/Preferred majors or academic programs</dt>
		<dd><?php echo $pos['PROGRAMS'] ?></dd>
	  <dt>Importance of majors</dt>
		<dd><?php echo $pos['MAJORIMPORTANCE'] ?></dd>
	  <dt>Supervisor name</dt>
		<dd><?php echo $pos['SUPERVISOR'] ?></dd>
	  <dt>Mentor/Supervision Structure</dt>
		<dd><?php echo $pos['STRUCTURE'] ?></dd>
</dl>
<?php endif; ?>
<?php if(!$pos):?>
	<h3>The position requested does not exist or you do not have permission to view the position.</h3>
<?php endif; ?>
